﻿@{
	ViewBag.Title = "EditarCertificacao";
	Layout = "~/Views/Home/_LayOutEmpty.cshtml";
}

@model TesteSharepointNovo.Models.Certificacao



<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-edit"></i> Certificação</h2>
						
					</div>
<div class="box-content">
@using (Html.BeginForm("EditarCertificacao", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })) { 

@Html.HiddenFor(c=>Model.Id)
@Html.HiddenFor(c=>Model.Curriculo.Id)
<fieldset>




<!-- Text input-->
<div class="control-group">
  <label class="control-label">Nome da certficação:</label>
  <div class="controls">
  
   @Html.EditorFor(p => p.Nome,new { @class = "input-xlarge"})
		
  </div>
</div>

<div class="control-group">
  <label class="control-label">Ano de obtenção:</label>
  <div class="controls">
   
	<select id="AnoInicio" name="AnoInicio" class="input-xlarge">
	 @for (int i = DateTime.Now.Year; i > 1970; i--)
	 {
		 var selected = i == Model.ObtidaEm ? "selected" : string.Empty;
			 <option @selected value="@i">@i</option>
	 }

	
  </select>	
  </div>
</div>

<div class="control-group">
  <label class="control-label">Logo:</label>
  <div class="controls">
     <input type="file" name="Arquivo" id="Arquivo" />
	
	
  </div>
</div>



<div class="form-actions">
	<button type="submit" class="btn btn-primary">Salvar </button>
	<button type="reset" class="btn" onclick="location.href='@Url.Action("Contact")'">Cancelar</button>
</div>
</fieldset>
}
</div>
</div>
